#pragma once
#include "node.h"
#include "Input.h"
#include "Subject.h"
#include "StartNode.h"
class EndNode :
	public Node, public Subject
{
private:
	EndNode( const char* );
private:
	Input* input;
public:
	EndNode(void);
	void notify();
	void SetCircuit(Observer* circuit);
	Input* GetInputForLink();
	bool IsSet();
	int GetValue();
	Node* clone();
	~EndNode(void);
private:
	static EndNode cInstance;
};

